

#ifndef _SHELL_RESUPGRID_MESSAGE_H_
#define _SHELL_RESUPGRID_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include "KungfuGrid.h"
using namespace std;

class ResUpGridMessage : public Message
{
	public:
	ResUpGridMessage();
	~ResUpGridMessage();
	void reset();
	ResUpGridMessage* clone();
	static const int _ID;
	//1添加2更新
	int8 type;
	//1门派2江湖
	int8 gridType;
	//格子变化信息
	KungfuGrid* kungfuGrid;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
